//
//  RoomTypeCell.m
//  住房条件帅选器
//
//  Created by MB__Lee on 2018/5/17.
//  Copyright © 2018年 MB__Lee. All rights reserved.
//

#import "RoomTypeCell.h"

@interface RoomTypeCell()
@property (weak, nonatomic) IBOutlet UILabel *typeLabel;

@property (weak, nonatomic) IBOutlet UIImageView *typeImgv;

@end


@implementation RoomTypeCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.typeImgv.hidden = YES;
    // Initialization code
}
-(void)setRoomType:(NSString *)roomType{
    _roomType = roomType;
    self.typeLabel.text = roomType;
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    if (selected) {
        self.typeLabel.textColor  = MB_RGBA(63, 171, 250, 1.0);
        self.typeImgv.hidden = NO;
    }else if (!selected){
        self.typeLabel.textColor = MB_RGBA(51, 51, 51, 1.0);
        self.typeImgv.hidden = YES;
    }
    
    
}

@end
